package com.itheima.bh1009;

public class Phone {
    private String brand;
    private double price;
    private int size;

    public Phone() {
    }

    public Phone(String brand, double price, int size) {
        this.brand = brand;
        this.price = price;
        this.size = size;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void call() {
        System.out.println("打电话");
    }

    public void sendMessage() {
        System.out.println("发短信");
    }

    public void playGame() {
        System.out.println("玩游戏");
    }

}

class SmartPhone extends Phone{
    public SmartPhone() {
    }

    public SmartPhone(String brand, double price, int size) {
        super(brand, price, size);
    }


    public void VideoCall() {
        System.out.println("视频通话");
    }
}